package com.ant.common.constant;

public class SystemConstant {

    public static final String INIT_PASSWORD = "000000";

    /**
     * 用户类型
     */
    public enum USER_TYPE {
        PLATFORM_ADMIN("平台管理员", 1),
        UNIT_ADMIN("商户管理员", 2),
        UNIT_USER("商户用户", 3);

        private Integer code;
        private String name;

        USER_TYPE(String name, Integer code) {
            this.name = name;
            this.code = code;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }

    /**
     * 删除状态
     */
    public enum DELETE_STATUS {
        UN_DELETE("未删除", 0),
        DELETED("已删除", 1);

        private Integer code;
        private String name;

        DELETE_STATUS(String name, Integer code) {
            this.name = name;
            this.code = code;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }


    /**
     * 模块类型
     */
    public enum MODULE_TYPE {
        PLATFORM_MODULE("平台模块", 1),
        UNIT_MODULE("商户模块", 2);

        private Integer code;
        private String name;

        MODULE_TYPE(String name, Integer code) {
            this.name = name;
            this.code = code;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }

    /**
     * 单位状态
     */
    public enum UNIT_STATUS {
        NONE("未知", 0),
        ACCEPTED("有效", 1),
        INVALID("无效", 2),
        LEAVED("挂起", 3);

        private Integer code;
        private String name;

        UNIT_STATUS(String name, Integer code) {
            this.name = name;
            this.code = code;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }


    /**
     * 用户状态
     */
    public enum USER_STATUS {
        NONE("未知", 0),
        ACCEPTED("有效", 1),
        INVALID("无效", 2),
        LEAVED("离职", 3);

        private Integer code;
        private String name;

        USER_STATUS(String name, Integer code) {
            this.name = name;
            this.code = code;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }
}
